package guoanmaker.operator.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import guoanmaker.operator.business.model.OperatorHotBusiness;
import guoanmaker.operator.business.model.OperatorNewsList;

public interface OperatorHotBusinessRepository extends JpaRepository<OperatorHotBusiness, String>, JpaSpecificationExecutor<OperatorHotBusiness>{
	 @Query("select n from OperatorHotBusiness n where n.cityId=:cityId")
	    List<OperatorHotBusiness> getOperatorHotBusiness(@Param("cityId") String cityId);
}
